﻿<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('cake.generic');
		
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
		
	  
	    echo "<script src='/mcouponMgr/jquery-mobile/jquery-1.6.4.min.js' type='text/javascript'></script>";
        echo "<script src='/mcouponMgr/jquery-mobile/jquery.mobile-1.0.min.js' type='text/javascript'></script>";	       
        echo "<link rel='stylesheet' href='/mcouponMgr/css/jquery.mobile.theme.css' />";		      
		echo "<link rel='stylesheet'  href='/mcouponMgr/css/jquery.mobile.structure.css' />";
			echo "<script src='/mcouponMgr/js/lib/jquery.js'></script>";
	?>


 
      
           
        <br />
      
		
   
	<div class="stores form">
<form id="addimagePost" enctype="multipart/form-data" action="/mcouponMgr/Shopimages/addimage" method="POST">
	<fieldset>
		<legend><?php echo __('Add image'); ?></legend>
	 Choose a file to upload: <input name="file" type="file" />
	</fieldset>
	 <div class="actions">
	<ul>
	  <li><a href="#" onclick="toPOST()">Upload File</a></li>
	</ul>
	</div>
	</form>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('List Shopimages'), array('action' => 'imagelist')); ?></li>
	
	</ul>
</div>

	<script type="text/javascript" charset="utf-8">
	  function toPOST()
        {
          

            $("#addimagePost").submit();
        }
		  </script>